class SnakePart{
    constructor(x,y,dir,next){
        this.x = x;
        this.y = y;
        this.dir = dir;
        this.next = next;
    }
}